import {RouteConfig} from 'vue-router';

const LOGIN = {
  path: '/ControlPanel/Oauth/WorkWeixin/:agentId/Login',
  name: 'Oauth_WorkWeixin_Login',
  component: () => import ('@/oauth/workWeixin/login.vue'),
  meta: {
    oauth: true,
    hidden: true
  }
} as RouteConfig;

const LOGIN_CALLBACK = {
  path: '/ControlPanel/Oauth/WorkWeixin/:agentId/LoginCallback',
  name: 'Oauth_WorkWeixin_LoginCallback',
  component: () => import ('@/oauth/workWeixin/loginCallback.vue'),
  meta: {
    oauth: true,
    hidden: true
  }
} as RouteConfig;

const SCAN_LOGIN = {
  path: '/ControlPanel/Oauth/WorkWeixin/:agentId/ScanLogin',
  name: 'Oauth_WorkWeixin_ScanLogin',
  component: () => import ('@/oauth/workWeixin/scanLogin.vue'),
  meta: {
    oauth: true,
    hidden: true
  }
} as RouteConfig;

export default [LOGIN, LOGIN_CALLBACK, SCAN_LOGIN];
